<template>
<div class="big">
  <div class="banxin tanxin">
    <ul class="tanxin">
      <li>
        <img src="../../assets/images/home/integral-01.png" alt="" />
        <h2>签到得鸡腿</h2>
        <button>去签到</button>
      </li>
      <li>
        <img src="../../assets/images/home/integral-02.png" alt="" />
        <h2>购课得鸡腿</h2>
        <button>去购课</button>
      </li>
      <li>
        <img src="../../assets/images/home/integral-03.png" alt="" />
        <h2>推荐得鸡腿</h2>
        <button>去推荐</button>
      </li>
      <li>
        <img src="../../assets/images/home/integral-04.png" alt="" />
        <h2>做任务得鸡腿</h2>
        <button>做任务</button>
      </li>
    </ul>
  </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
@import "../../assets/base.less";
.big{
  background-color: #fff;
}
ul {
  li {
      cursor: pointer;
    position: relative;
    margin-right: 20px;
    overflow: hidden;
    margin-bottom: 47px;
    cursor: pointer;

    img {
      width: 100%;
      height: 100%;
      transition: all 0.5s linear;
      transform-origin: 50%;
    }

    &:hover img {
      transform: scale(1.05);
    }

    h2 {
      position: absolute;
      top: 50px;
      left: 20px;
      font-size: 25px;
      font-weight: bold;
      color: #ffffff;
      line-height: 23px;
    }

    button {
      cursor: pointer;
      position: absolute;
      top: 90px;
      left: 22px;
      width: 96px;
      height: 27px;
      border: 1px solid #ffffff;
      background-color: rgba(0, 0, 0, 0);
      color: #fff;
      &:hover{
        background-color: rgba(0, 0, 0, 0.4);
      }
    }
  }
}
</style>